<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
  <title>Gestion - Identification</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <link type="text/css" href="css/gestion.css" rel="stylesheet">  
  <script type="text/javascript" src="js/prototype.js"></script> 
</head>
<body>
  <h1>Veuillez vous identifier</h1>

  <div id="log_wnd">

  <form name="login" action="<?php print $this->url(); ?>" method="post">
  
  <table>
  <colgroup>
    <col class="col-label">
    <col class="col-input">
  </colgroup>
  <tr>
    <td><label for="uname">Identifiant :</label></td>
    <td><input type="text" id="uname" name="username" value="<?php print $TPL['uname']; ?>" size="32"></td></tr>
  <tr>
    <td><label for="pwd">Password :</label></td>
    <td><input type="password" id="pwd" name="password" size="32" maxlength="32"></td></tr>
  </table>
  <p><input type="submit" name="submitbtn" value="Login now"></p>
</form>

<?php if ( isset($_POST['username']) ) : ?>
  <p class="erreur">Votre identifiant ou votre mot de passe est invalide<br>
  Veuillez essayer à nouveau</p>
<?php endif; ?>

  </div>

<script type="text/javascript">
<!--
  // Activate the appropriate input form field.
    Field.focus($F('uname') == '' ? 'uname' : 'pwd');
// -->
</script>
</body>
</html>
